home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / include / gdk-pixbuf-1.0 / gdk-pixbuf / gdk-pixbuf-loader.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-01-09  |  2.9 KB  |  89 lines

  1. /* GdkPixbuf library - Main header file
  2.  *
  3.  * Copyright (C) 1999 The Free Software Foundation
  4.  *
  5.  * Authors: Mark Crichton <crichton@gimp.org>
  6.  *          Miguel de Icaza <miguel@gnu.org>
  7.  *          Federico Mena-Quintero <federico@gimp.org>
  8.  *          Jonathan Blandford <jrb@redhat.com>
  9.  *
  10.  * This library is free software; you can redistribute it and/or
  11.  * modify it under the terms of the GNU Library General Public
  12.  * License as published by the Free Software Foundation; either
  13.  * version 2 of the License, or (at your option) any later version.
  14.  *
  15.  * This library is distributed in the hope that it will be useful,
  16.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  17.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  18.  * Library General Public License for more details.
  19.  *
  20.  * You should have received a copy of the GNU Library General Public
  21.  * License along with this library; if not, write to the
  22.  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  23.  * Boston, MA 02111-1307, USA.
  24.  */
  25.  
  26. #ifndef GDK_PIXBUF_LOADER_H
  27. #define GDK_PIXBUF_LOADER_H
  28.  
  29. #include <unistd.h>
  30. #include <gtk/gtkobject.h>
  31. #include <gdk-pixbuf/gdk-pixbuf.h>
  32.  
  33. #ifdef __cplusplus
  34. extern "C" {
  35. #endif
  36.  
  37.  
  38.  
  39. #define GDK_TYPE_PIXBUF_LOADER           (gdk_pixbuf_loader_get_type ())
  40. #define GDK_PIXBUF_LOADER(obj)           (GTK_CHECK_CAST ((obj), GDK_TYPE_PIXBUF_LOADER, GdkPixbufLoader))
  41. #define GDK_PIXBUF_LOADER_CLASS(klass)       (GTK_CHECK_CLASS_CAST ((klass), GDK_TYPE_PIXBUF_LOADER, GdkPixbufLoaderClass))
  42. #define GDK_IS_PIXBUF_LOADER(obj)       (GTK_CHECK_TYPE ((obj), GDK_TYPE_PIXBUF_LOADER))
  43. #define GDK_IS_PIXBUF_LOADER_CLASS(klass)  (GTK_CHECK_CLASS_TYPE ((klass), GDK_TYPE_PIXBUF_LOADER))
  44.  
  45. typedef struct _GdkPixbufLoader GdkPixbufLoader;
  46. typedef struct _GdkPixbufLoaderClass GdkPixbufLoaderClass;
  47. typedef struct _GdkPixbufLoaderPrivate GdkPixbufLoaderPrivate;
  48.  
  49. struct _GdkPixbufLoader {
  50.     GtkObject object;
  51.  
  52.     /* Private data */
  53.     GdkPixbufLoaderPrivate *priv;
  54. };
  55.  
  56. struct _GdkPixbufLoaderClass {
  57.     GtkObjectClass parent_class;
  58.  
  59.     void (* area_prepared)   (GdkPixbufLoader *loader);
  60.  
  61.     void (* area_updated)    (GdkPixbufLoader *loader,
  62.                                   guint x, guint y, guint width, guint height);
  63.  
  64.     void (* frame_done)      (GdkPixbufLoader *loader, GdkPixbufFrame *frame);
  65.  
  66.     void (* animation_done)  (GdkPixbufLoader *loader);
  67.  
  68.     void (* closed)          (GdkPixbufLoader *loader);
  69. };
  70.  
  71.  
  72.  
  73. GtkType             gdk_pixbuf_loader_get_type      (void);
  74. GdkPixbufLoader    *gdk_pixbuf_loader_new           (void);
  75. gboolean            gdk_pixbuf_loader_write         (GdkPixbufLoader *loader,
  76.                              const guchar    *buf,
  77.                              size_t           count);
  78. GdkPixbuf          *gdk_pixbuf_loader_get_pixbuf    (GdkPixbufLoader *loader);
  79. GdkPixbufAnimation *gdk_pixbuf_loader_get_animation (GdkPixbufLoader *loader);
  80. void                gdk_pixbuf_loader_close         (GdkPixbufLoader *loader);
  81.  
  82.  
  83.  
  84. #ifdef __cplusplus
  85. }
  86. #endif
  87.  
  88. #endif
  89.